#!/bin/sh
# bootlimn uninstall

PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

# removing the kernel module directory
rm -rf /bootlimnko
echo "Removed the kernel module directory"

rm -rf /bootlimnoutput
echo "Removed /bootlimnoutput"

# removing the sbin files
rm -f sbin/stpcaller
rm -f sbin/bootlimn
echo "Removed sbin files"

# Remove the grub/lilo entry
GRUBBY=/sbin/grubby
if [ -x $GRUBBY ]; then
	$GRUBBY --remove-kernel TITLE="bootlimn"
	echo "Removed the GRUB entry"
fi

echo "Uninstall complete! Thank you for using bootlimn."

